package acwing.模拟;

import java.util.Scanner;

/**
 * 成绩分析
 *
 * @author yang
 * @date 2021/12/16
 */
public class 成绩分析 {

    static int N = 10000;
    static int[] arr = new int[N];
    static int n;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        int max = 0;
        int min = Integer.MAX_VALUE;
        int sum = 0;
        for (int i = 0; i < n; i++) {
            if (arr[i] > max) {
                max = arr[i];
            }
            if (arr[i] < min) {
                min = arr[i];
            }
            sum += arr[i];

        }
        System.out.println(max);
        System.out.println(min);
        System.out.printf("%.2f",1.0 * sum /n);
    }
}
